package cn.houseProperty.service.impl;

import cn.entity.Do.Room;
import cn.houseProperty.dao.RoomDao;
import cn.houseProperty.service.IroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoomService implements IroomService {
    @Autowired
    private RoomDao roomDao;
    @Override
    public List<Room> selectBySid(String sid) {
        return roomDao.selectBySid(sid);
    }

    @Override
    public Room selectByPrimaryKey(String code) {
        return roomDao.selectByPrimaryKey(code);
    }

    @Override
    public int updateByPrimaryKey(Room record) {
        return roomDao.updateByPrimaryKey(record);
    }

    @Override
    public List<Room> selectAll() {
        return roomDao.selectAll();
    }
}
